/**     
* @Title: ResourceServiceImpl.java
* @Package me.springboot.security.service.impl 
* @Description: TODO
* @author weiwei 
* @date 2017/08/29
* @version V1.0     
*/
package me.springboot.security.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import me.springboot.core.AbstractService;
import me.springboot.security.dao.ResourceMapper;
import me.springboot.security.model.Resource;
import me.springboot.security.service.ResourceService;

/**
 * @ClassName: ResourceService
 * @Description: TODO
 * @author weiwei
 * @date 2017/08/29
 */
@Service
@Transactional
public class ResourceServiceImpl extends AbstractService<Resource> implements ResourceService {

	@javax.annotation.Resource
	private ResourceMapper resourceMapper;

	@Override
	public List<Resource> findByUserId(Integer userId) {
		if (null != userId) {
			return resourceMapper.queryByUserId(userId);
		}
		return null;
	}

}